﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernateUnitOfWork;
using XWord.Fundamental.Domain;

namespace ConsoleApplication1
{
    public class RCArticleTest
    {
        public static void Test()
        {
            RCArticle rac = new RCArticle();
            rac.CreateTime = new DateTime(2008, 12, 22);

            rac.Content = @"　　Someday a stranger will read your e-mail without your permission or scan the websites you've visited. Or perhaps someone will casually glance through your credit card purchases or cell phone Bills to find out your shopping preferences or calling habits.

　　In fact, it's likely some of these things have already happened to you. Who would watch you without your permission? It might be a spouse, a girlfriend, a marketing company, a boss, a cop or a criminal. Whoever it is, they will see you in a way you never intended to be seen - the 2lst century equivalent of being caught naked.

　　Psychologists tell us boundaries are healthy, that it's important to reveal yourself to friends, Family and lovers in stages, at appropriate times. But few boundaries remain. The digital bread Crumbs you leave everywhere make it easy for strangers to reconstruct who you are, where you are and what you like. In some cases, a simple Google search can reveal what you think. Like it or not, increasingly we live in a world where you simply cannot keep a secret.

　　The key question is: Does that matter?

　　For many Americans, the answer apparently is &quot;no&quot;

　　When opinion polls ask Americans about privacy most say they are concerned about losing it. A survey found an overwhelming pessimism about privacy, with 60 percent of respondents saying they feel their privacy is &quot;slipping away, and that bothers me.&quot;

　　But people say one thing and do another. Only a tiny fraction of Americans change any behaviors in an effort to preserve their privacy. Few people turn down a discount at tollbooths （收费站） to avoid using the EZ-Pass system that can track automobile movements. And few turn down supermarket loyalty cards, privacy economist Alessandro Acquits has run a series of tests that reveal people will surrender personal information like Social Security numbers just to get their hands on a pitiful 50-cents-off coupon.

　　But privacy does matter- at least sometimes. It's like health; when you have it, you don't notice it. Only when it's gone do you wish you'd done more to protect it.
";
            rac.Part = 2;
            rac.CompleteMinute = 10;
            UnitOfWork.CurrentSession.Save(rac);
            UnitOfWork.CurrentSession.Flush();
        }
        public static void Test1()
        {
            RCArticle rac = new RCArticle();
            rac.CreateTime = new DateTime(2006, 6, 22);

            rac.Content = @"    Communications technologies are far from equal when it comes to conveying the truth. The first study to compare honesty across a range of communication media has fund that people are twice as likely to tell lies in phone conversations as they are in emails. The fact that emails are automatically recorded—and can come back to haunt (困扰) you—appears to be the key to the finding.
Jeff Hancock of Cornell University in Ithaca, New York, asked 30 students to keep a communications diary for a week. In it they noted the number of conversations or email exchanges they had lasting more than 10 minutes, and confessed to how many lies they told. Hancock then worked out the number of lies per conversation for each medium. He found that lies made up 14 per cent of emails, 21 per cent of instant messages, 27 per cent of face-to-face interactions and an astonishing 37 per cent of phone calls.
His results to be presented at the conference on human-computer interaction in Vienna, Austria, in April, have surprised psychologists. Some expected emailers to be the biggest liars, reasoning that because deception makes people uncomfortable, the detachment (非直接接触) of emailing would make it easier to lie. Others expected people to lie more in face-to-face exchanges because we are most practised at that form of communication.
But Hancock says it is also crucial whether a conversation is being recorded and could be reread, and whether it occurs in real time. People appear to be afraid to lie when they know the communication could later be used to hold them to account, he says. This is why fewer lies appear in email than on the phone.
People are also more likely to lie in real time—in a instant message or phone call, say—than if they have time to think of a response, says Hancock. He found many lies are spontaneous (脱口而出的) responses to an unexpected demand, such as: “Do you like my dress?”
Hancock hopes his research will help companies work our the best ways for their employees to communicate. For instance, the phone might be the best medium foe sales where employees are encouraged to stretch the truth. But, given his result, work assessment where honesty is a priority, might be best done using email.
";
            rac.Part = 1;
            rac.CompleteMinute = 10;
            UnitOfWork.CurrentSession.Save(rac);
            UnitOfWork.CurrentSession.Flush();
        }

        public static void Test2()
        {
            RCArticle rac = new RCArticle();
            rac.CreateTime = new DateTime(2006, 6, 22);

            rac.Content = @"    In a country that defines itself by ideals, not by shared blood, who should be allowed to come work and live here? In the wake of the Sept. 11 attacks these questions have never seemed more pressing.
On Dec. 11, 2001, as part of the effort to increase homeland security, federal and local authorities in 14 states staged “Operation Safe Travel”—raids on airports to arrest employees with false identification (身份证明). In Salt Lake City there were 69 arrests. But those captured were anything but terrorists, most of them illegal immigrants from Central or South America. Authorities said the undocumented workers’ illegal status made them open to blackmail (讹诈) by terrorists.
Many immigrants in Salt Lake City were angered by the arrests and said they felt as if they were being treated like disposable goods.
Mayor Anderson said those feelings were justified to a certain extent. “We’re saying we want you to work in these places, we’re going to look the other way in terms of what our laws are, and then when it’s convenient for us, or when we can try to make a point in terms of national security, especially after Sept. 11, then you’re disposable. There are whole families being uprooted for all of the wrong reasons,” Anderson said.
If Sept. 11 had never happened, the airport workers would not have been arrested and could have gone on quietly living in America, probably indefinitely. Ana Castro, a manager at a Ben & Jerry’s ice cream shop at the airport had been working 10 years with the same false Social Security card when she was arrested in the December airport raid. Now she and her family are living under the threat of deportation (驱逐出境). Castro’s case is currently waiting to be settled. While she awaits the outcome, the government has granted her permission to work here and she has returned to her job at Ben & Jerry’s.
";
            rac.Part = 2;
            rac.CompleteMinute = 10;
            UnitOfWork.CurrentSession.Save(rac);
            UnitOfWork.CurrentSession.Flush();
        }

        public static void Test3()
        {
            RCArticle rac = new RCArticle();
            rac.CreateTime = new DateTime(2006, 12, 22);

            rac.Content = @"    Reaching new peaks of popularity in North America is Iceberg Water, which is harvested from icebergs off the coast of Newfoundland, Canada.
Arthur von Wiesenberger, who carries the title Water Master, is one of the few water critics in North America. As a boy, he spent time in the larger cities of Italy, France and Switzerland, where bottled water is consumed daily. Even then, he kept a water journal, noting the brands he liked best. “My dog could tell the difference between bottled and tap water,” He says.
But is plain tap water all that bad? Not at all. In fact, New York’s municipal water for more than a century was called the champagne of tap water and until recently considered among the best in the world in terms of both taste and purity. Similarly, a magazine in England found that tap water from the Thames River tasted better than several leading brands of bottled water that were 400 times more expensive.
Nevertheless, soft-drink companies view bottled water as the next battle-ground for market share—this despite the fact that over 25 percent of bottled water comes from tap water: PepsiCo’s Aquafina and Coca-Cola’s Dasani are both purified tap water rather than spring water.
As diners thirst for leading brands, bottlers and restaurateurs salivate (垂涎) over the profits. A restaurant’s typical mark-up on wine is 100 to 150 percent, whereas on bottled water it’s often 300 to 500 percent. But since water is much cheaper than wine, and many of the fancier brands aren’t available in stores, most diners don’t notice or care.
As a result, some restaurants are turning up the pressure to sell bottled water. According to an article in The Street Journal, some of the more shameless tactics include placing attractive bottles on the table for a visual sell, listing brands on the menu without prices, and pouring bottled water without even asking the diners if they want it.
Regardless of how it’s sold, the popularity of bottled water taps into our desire for better health, our wish to appear cultivated, and even a longing for lost purity.
";
            rac.Part = 1;
            rac.CompleteMinute = 10;
            UnitOfWork.CurrentSession.Save(rac);
            UnitOfWork.CurrentSession.Flush();
        }

        public static void Test4()
        {
            RCArticle rac = new RCArticle();
            rac.CreateTime = new DateTime(2006, 12, 22);

            rac.Content = @"    As we have seen, the focus of medical care in our society has been shifting from curing disease to preventing disease—especially in terms of changing our many unhealthy behaviors, such as poor eating habits, smoking, and failure to exercise. The line of thought involved in this shift can be pursued further. Imagine a person who is about the right weight, but does not eat very nutritious (有营养的) foods, who feels OK but exercises only occasionally, who goes to work every day, but is not an outstanding worker, who drinks a few beers at home most nights but does not drive while drunk, and who has no chest pains or abnormal blood counts, but sleeps a lot and often feels tired. This person is not ill. He may not even be at risk for any particular disease. But we can imagine that this person could be a lot healthier.
The field of medicine has not traditionally distinguished between someone who is merely “not ill” and someone who is in excellent health and pays attention to the body’s special needs. Both types have simply been called “well.” In recent years, however, some health specialists have begun to apply the terms “well” and “wellness” only to those who are actively striving to maintain and improve their health. People who are well are concerned with nutrition and exercise, and they make a point of monitoring their body’s condition. Most important, perhaps, people who are well take active responsibility for all matters related to their health. Even people who have a physical disease or handicap (缺陷) may be “well,” in this new sense, if they make an effort to maintain the best possible health they can in the face of their physical limitations. “Wellness” may perhaps best be viewed not as a state that people can achieve, but as an ideal that people can strive for. People who are well are likely to be better able to resist disease and to fight disease when it strikes. And by focusing attention on healthy ways of living, the concept of wellness can have a beneficial impact on the ways in which people face the challenges of daily life.
";
            rac.Part = 2;
            rac.CompleteMinute = 10;
            UnitOfWork.CurrentSession.Save(rac);
            UnitOfWork.CurrentSession.Flush();
        }

        public static void Test5()
        {
            RCArticle rac = new RCArticle();
            rac.CreateTime = new DateTime(2007, 6, 22);

            rac.Content = @"    I’ve been writing for most of my life. The book Writing Without Teachers introduced me to one distinction and one practice that has helped my writing processes tremendously. The distinction is between the creative mind and the critical mind. While you need to employ both to get to a finished result, they cannot work in parallel no matter how much we might like to think so.
Trying to criticize writing on the fly is possibly the single greatest barrier to writing that most of us encounter. If you are listening to that 5th grade English teacher correct your grammar while you are trying to capture a fleeting (稍纵即逝的) thought, the thought will die. If you capture the fleeting thought and simply share it with the world in raw form, no one is likely to understand. You must learn to create first and then criticize if you want to make writing the tool for thinking that it is.
The practice that can help you past your learned bad habits of trying to edit as you write is what Elbow calls “free writing.” In free writing, the objective is to get words down on paper non-stop, usually for 15-20 minutes. No stopping, no going back, no criticizing. The goal is to get the words flowing. As the words begin to flow, the ideas will come from the shadows and let themselves be captured on your notepad or your screen.
Now you have raw materials that you can begin to work with using the critical mind that you’ve persuaded to sit on the side and watch quietly. Most likely, you will believe that this will take more time than you actually have and you will end up staring blankly at the pages as the deadline draws near.
Instead of staring at a blank start filling it with words no matter how bad. Halfway through you available time, stop and rework your raw writing into something closer to finished product. Move back and forth until you run out of time and  the final result will most likely be far better than your current practices.
";
            rac.Part = 1;
            rac.CompleteMinute = 10;
            UnitOfWork.CurrentSession.Save(rac);
            UnitOfWork.CurrentSession.Flush();
        }

        public static void Test6()
        {
            RCArticle rac = new RCArticle();
            rac.CreateTime = new DateTime(2007, 6, 22);

            rac.Content = @"    I don’t ever want to talk about being a woman scientist again. There was a time in my life when people asked constantly for stories about what it’s like to work in a field dominated by men. I was never very good at telling those stories because truthfully I never found them interesting. What I do find interesting is the origin of the universe, the shape of space-time and the nature of black holes.
At 19, when I began studying astrophysics, it  did not bother me in the least to be the only woman in the classroom. But while earning my Ph.D. at MIT and then as a post-doctor doing space research, the issue started to bother me. My every achievement—jobs, research papers, awards—was viewed through the lens of gender (性别) politics. So were my failures. Sometimes, when I was pushed into an argument on left brain versus (相对于) right brain, or nature versus nurture (培育), I would instantly fight fiercely on my behalf and all womankind.
Then one day a few years ago, out of my mouth came a sentence that would eventually become my reply to any and all provocations: I don’t talk about that anymore. It took me 10 years to get back the confidence I had at 19 and to realize that I didn’t want to deal with gender issues. Why should curing sexism be yet another terrible burden on every female scientist? After all, I don’t study sociology or political theory.
Today I research and teach at Barnard, a women’s college in New York City. Recently, someone asked me how may of the 45 students in my class were women. You cannot imagine my satisfaction at being able to answer, 45. I know some of my students worry how they will manage their scientific research and a desire for children. And I don’t dismiss those concerns. Still, I don’t tell them “war” stories. Instead, I have given them this: the visual of their physics professor heavily pregnant doing physics experiments. And in turn they have given me the image of 45 women driven by a love of science. And that’s a sight worth talking about.
";
            rac.Part = 2;
            rac.CompleteMinute = 10;
            UnitOfWork.CurrentSession.Save(rac);
            UnitOfWork.CurrentSession.Flush();
        }

        public static void Test7()
        {
            RCArticle rac = new RCArticle();
            rac.CreateTime = new DateTime(2007, 12, 22);

            rac.Content = @"    By almost any measure, there is a boom in Internet-based instruction. In just a few years, 34 percent of American universities have begun offering some form of distance learning (DL), and among the larger schools, it’s closer to 90 percent. If you doubt the popularity of the trend, you probably haven’t heard of the University of Phoenix. It grants degrees entirely on the basis of online instruction. It enrolls 90,000 students, a statistic used to support its claim to be the largest private university in the country.
While the kinds of instruction offered in these programs will differ, DL usually signifies a course in which the instructors post syllabi (课程大纲), reading assignments, and schedules on Websites, and students send in their assignments by e-mail. Generally speaking, face-to-face communication with an instructor is minimized or eliminated altogether.
The attraction for students might at first seem obvious. Primarily, there’s the convenience promised by courses on the Net: you can do the work, as they say, in your pajamas (睡衣). But figures indicate that the reduced effort results in a reduced commitment to the course. While dropout rates for all freshmen at American universities is around 20 percent, the rate for online students is 35 percent. Students themselves seem to understand the weaknesses inherent in the setup. In a survey conducted for eCornell, the DL division of Cornell University, less than a third of the respondents expected the quality of the online course to be as good as the classroom course.
Clearly, from the schools’ perspective, there’s a lot of money to be saved. Although some of the more ambitious programs require new investments in severs and networks to support collaborative software, most DL courses can run on existing or minimally upgraded(升级) systems. The more students who enroll in a course but don’t come to campus, the more the schools saves on keeping the lights on in the classrooms, paying doorkeepers, and maintaining parking lots. And, while there’s evidence that instructors must work harder to run a DL course for a variety of reasons, they won’t be paid any more, and might well be paid less.
";
            rac.Part = 1;
            rac.CompleteMinute = 10;
            UnitOfWork.CurrentSession.Save(rac);
            UnitOfWork.CurrentSession.Flush();
        }

        public static void Test8()
        {
            RCArticle rac = new RCArticle();
            rac.CreateTime = new DateTime(2007, 12, 22);

            rac.Content = @"   In this age of Internet chat, videogames and reality television, there is no shortage of mindless activities to keep a child occupied. Yet, despite the competition, my 8-year-old daughter Rebecca wants to spend her leisure time writing short stories. She wants to enter one of her stories into a writing contest, a competition she won last year.
   As a writer I know about winning contests, and about losing them. I know what it is like to work hard on a story to receive a rejection slip from the publisher. I also know the pressures of trying to live up to a reputation created by previous victories. What if she doesn’t win the contest again? That’s the strange thing about being a parent. So many of our own past scars and dashed hopes can surface.
   A revelation (启示) came last week when I asked her, “Don’t you want to win again?” “No,” she replied, “I just want to tell the story of an angel going to first grade.”
   I had just spent weeks correcting her stories as she spontaneously (自发地) told them. Telling myself that I was merely an experienced writer guiding the young writer across the hall. I offered suggestions first grade was quickly “guided” by me into the tale of a little girl with a wild imagination taking her first music lesson. I had turned her contest into my contest without even realizing it.
   Staying back and giving kids space to grow is not as easy as it looks. Because I know little about farm animals who use tools or angels who go to first grade. I had to accept the fact that I was co-opting (借用) my daughter’s experience.
   While steeping back was difficult for me, it was certainly a good first step that I will quickly follow with more steps, putting myself far enough away to give her room but close enough to help if asked. All the while I will be reminding myself that children need room to experiment , grow and find their own voices.
";
            rac.Part = 2;
            rac.CompleteMinute = 10;
            UnitOfWork.CurrentSession.Save(rac);
            UnitOfWork.CurrentSession.Flush();
        }
    }
}
